package cn.shutdown.demo;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务demo
 * @author jiangwujie
 * @date 2021/5/14
 */
@Component
@EnableScheduling
public class ScheduleTest {


    @Scheduled(cron = "0/2 * * * * ?")
    private void syncUser() {
        System.out.println("fuck you");
    }
}
